import type { ActionsCreator } from '@ac/store';
import type { GlobalActions, GlobalSlice } from './types';

export const createGlobalActions: ActionsCreator<GlobalSlice, GlobalActions> = set => ({
	// 设置语言
	setLanguage: lang => {
		set(state => {
			state.language = lang;
		});
	}
});
